import request from '@/utils/request'
import { IApiRes, CatgoryItem } from '@/types/data'

export const getCategoryApi = () => {
  return request<IApiRes<CatgoryItem>>({
    url: '/home/category/head',
    method: 'get',
  })
}